Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always use CAPI generated certificates for etcd management #451

Conversation

Danil-Grigorev
Copy link
Contributor

@Danil-Grigorev Danil-Grigorev commented Oct 2, 2024

What this PR does / why we need it:

This change ensures that in all cases, etcd certificate is fetched from local (management) cluster, to perform etcd membership management, unless the certificate is not available, which skips this operation.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #449

Special notes for your reviewer:

Checklist:

  • squashed commits into logical changes
  • includes documentation
  • adds unit tests
  • adds or updates e2e tests

@Danil-Grigorev Danil-Grigorev requested a review from a team as a code owner October 2, 2024 09:58
@Danil-Grigorev Danil-Grigorev force-pushed the stop-fetching-external-certificates branch from 4064e00 to 392d58d Compare October 2, 2024 10:34
- Perform etcd memebership management only when the local certificates
  were created, and skip otherwise.

Signed-off-by: Danil-Grigorev <[email protected]>
@Danil-Grigorev Danil-Grigorev force-pushed the stop-fetching-external-certificates branch from 392d58d to 961690d Compare October 2, 2024 13:30
@tmmorin
Copy link

tmmorin commented Oct 2, 2024

Using a local image built from this branch, I was able to do a rolling upgrade of a cluster deployed with CABPRKE2 provider 0.2.7 (for the record, one example test run: https://gitlab.com/sylva-projects/sylva-core/-/jobs/7975725471).

This seems like a satisfying solution; I understand that how to transition clusters built with that version to the newer CAPI-managed certificate approach, will be worked on separately.

thanks! ✔️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ETCD becomes unavailable on update
4 participants